<?
include_once "../config/constants.php";
popen("ffmpeg -y -itsoffset -4 -i $SourceMedia -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 $TargetThumbnail 2>&1", "r");
$T = MEDIA_THUMB_URI;
$query = "UPDATE  `contentsmetadata_db`.`tblContent` SET  `cansscontent_thumbnail` = '$T/$i.jpg' WHERE `tblContent`.`tblCID_cid` = '$i'";
mysql_query( $query );
?>
